﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Person
    {
        /************** Definere vores variabler ***************/
        protected int personId;
        protected string navn;
        protected int cprnr;
        protected Adresse adr1;
        protected Adresse adr2;
        protected int telfnr;
        protected string email;


        /************** Constructor ***************/
        public Person(int personId, string navn, int cprnr, Adresse adr1, Adresse adr2, int telfnr, string email)
        {
            this.personId = personId;
            this.navn = navn;
            this.cprnr = cprnr;
            this.adr1 = adr1;
            this.adr2 = adr2;
            this.telfnr = telfnr;
            this.email = email;
        }

        /************** Metoder ***************/

        public void SetAdresse(Adresse adr1, Adresse adr2)
        {
            this.adr1 = adr1;
            this.adr2 = adr2;
        }



        /************** Properties ***************/


        public int PersonId
        {
            get { return personId; }
            set { personId = value; }
        }
        
        
        public string Navn
        {
            get { return navn;}
            set{navn = value;}
        }

        public int Cprnr
        {
            get {return cprnr;}
            set { cprnr = value;}
        }

        public Adresse Adr1
        {
            get { return adr1; }
            set { adr1 = value; }
        }

        public Adresse Adr2
        {
            get { return adr2; }
            set { adr2 = value;}
        }

        public int Telfnr
        {
            get { return telfnr; }
            set { telfnr = value;}
        }

        public string Email
        {
            get { return email; }
            set { email = value; }
        }


    }
}
